home *** CD-ROM | disk | FTP | other *** search
- /*This keygen is made by tarq, mainly for the reason to increase my coding */
- /*skills in c, and also to show other newbies how a typical keygen can be*/
- /*done. I wont explain how i found all the procedures, since e_bliss has */
- /*done a very nice tut already. This was compiled on turbo c++ 4.5 */
- /*Thanks to all guys in #cracking4newbies and #c */
-
- /*note: replace the "." with a "," if your generated code includes/*
- /*decimals./*
-
- #include <stdio.h>
-
- char name[100],buffer[80];
- double test;
- long nummer;
-
- int main(void)
- {
-
-
- printf("\nEnter name: ");
- scanf("%s",&name); /*get name*/
-
- printf("\nEnter reg number: ");
- scanf("%ld",&nummer); /*get reg number*/
-
- test = 0;
- test =(123456789*2);
-
- test = test/nummer;
-
- test = test+12;
-
- sprintf(buffer, "%ld", nummer); /*to be able to use the strlen funktion/*
- /*we need to put the numbers into a char/*
- /*variable*/
-
- test = test/(strlen(buffer)); /*strlen checks how many numbers that
- /*has been entered*/
-
- test = test*(strlen(name));
-
- printf("\n\n%2.15g",test); /*thanks to _y for showing me how set*/
- /*lengt of number showed*/
-
- getch();
- exit(0);
- }
-
-
-